<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title>Contenido - Frontend Session Information</title>
  <style type="text/css">
body            {
                    background-color: #ffffff;
                    scrollbar-face-color:#C6C6D5;
                    scrollbar-highlight-color:#FFFFFF;
                    scrollbar-3dlight-color:#747488;
                    scrollbar-darkshadow-color:#000000;
                    scrollbar-shadow-color:#334F77;
                    scrollbar-arrow-color:#334F77;
                    scrollbar-track-color:#C7C7D6;
		    font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 11px; color: #000000;
                }

h1 {
 font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 20px; color: #000000;
 margin-top: 0px;
}

h2 {
 font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 15px; color: #000000;
}

  </style>
</head>
<body alink="#000099" vlink="#990099" link="#000099"
 style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<table
 style="border-bottom: 1px solid; text-align: left; background-color: rgb(255, 255, 255); width: 100%;"
 border="0" cellspacing="2" cellpadding="2">
  <tbody>
    <tr>
      <td style="vertical-align: top;"><img
 style="width: 190px; height: 112px; padding-right: 20px;" align="left"
 alt="Contenido" src="conlogo.gif">
      <h1>Protected frontend categories<br>
      </h1>
      <table style="text-align: left;" border="0" cellspacing="2"
 cellpadding="2">
        <tbody>
          <tr>
            <td style="vertical-align: top;">Author</td>
            <td style="vertical-align: top;">Timo A. Hummel</td>
          </tr>
          <tr>
            <td style="vertical-align: top;">Created</td>
            <td style="vertical-align: top;">20th May 2005</td>
          </tr>
          <tr>
            <td style="vertical-align: top;">Audience<br>
            </td>
            <td style="vertical-align: top;">Site Integrators, Module Developers<br>
            </td>
          </tr>
          <tr>
            <td style="vertical-align: top;">Applies to<br>
            </td>
            <td style="vertical-align: top;">Contenido 4.6 or later<br>
            </td>
          </tr>
        </tbody>
      </table>
      </td>
    </tr>
  </tbody>
</table>
<br>
<h2>Introduction</h2>
Contenido 4.6 introduces a updated concept for protecting frontend categories
and enabling access to them.<br>
<h2>Installation and configuration</h2>
<p>Download the plugin &quot;Frontend Category Permissions&quot; from the Contenido website.
  Extract the archive to your plugins directory. Open (or create) the file config.plugin.php in the directory drugcms/plugins/chains/includes/
  and add the necessary includes and chain entries (see below). Afterwards, open
  the file config.local.php in your drugcms/includes directory (create the
  file
  if it
  doesn&#39;t exist) and add the following line at the end:</p>
<p><font face="Courier New, Courier, mono">$cfg[&#39;plugins&#39;][&#39;frontendlogic&#39;][]
= &quot;category&quot;;</font></p>
<p>Example config.plugin.php:</p>
<p><font face="Courier New, Courier, mono">&lt;?php<br>
  global $_cecRegistry;<br>
  cInclude(&quot;plugins&quot;, &quot;chains/includes/include.chain.frontend.cat_backendaccess.php&quot;);<br>
cInclude(&quot;plugins&quot;, &quot;chains/includes/include.chain.frontend.cat_access.php&quot;);</font></p>
<p><font face="Courier New, Courier, mono">$_cecRegistry-&gt;addChainFunction(&quot;Contenido.Frontend.CategoryAccess&quot;, &quot;cecFrontendCategoryAccess&quot;);<br>
  $_cecRegistry-&gt;addChainFunction(&quot;Contenido.Frontend.CategoryAccess&quot;, &quot;cecFrontendCategoryAccess_Backend&quot;);<br>
  ?&gt;</font></p>
<p>The chain <font face="Courier New, Courier, mono">Contenido.Frontend.CategoryAccess</font> is
  called everytime a protected category is accessed. If the chain functions return
  true, access is granted. The function <font face="Courier New, Courier, mono">cecFrontendCategoryAccess</font> validates
  frontend users and their permissions, and <font face="Courier New, Courier, mono">cecFrontendCategoryAccess_Backend</font> does
  the same for the backend user counterparts. If you wish to disable backend
  users for access frontend categories, remove the line which contains <font face="Courier New, Courier, mono">cecFrontendCategoryAccess_Backend</font>.
  You can also define chains for more custom checks, please refer to the chains
  documentation for more information.</p>
<h2>&nbsp;</h2>
</body>
</html>
